package routers

import (
	"github.com/gin-gonic/gin"
	v1 "teacher-helper/api/v1"
	"teacher-helper/middleware"
)

func InitMenuRouter(Router *gin.RouterGroup)  {
	MenuRouter := Router.Group("menus").Use(middleware.JWTAuth())
	{
		MenuRouter.GET("/getAllMenuTree", v1.GetAllMenuTree)
		MenuRouter.GET("/getMenuList", v1.GetMenuList)
		MenuRouter.GET("/getRoleMenuTree", v1.GetRoleMenuTree)
		MenuRouter.POST("/addMenu", v1.AddMenu)
		MenuRouter.GET("/getParentIds", v1.GetParentIds)
		MenuRouter.PUT("/updateMenu", v1.UpdateMenu)
		MenuRouter.DELETE("/deleteMenu", v1.DeleteMenu)
	}
}
